home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8163 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: garden.csc.calpoly.edu!not-for-mail
  2. From: dstubbs@garden.csc.calpoly.edu (Dan Stubbs)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C source code formatter
  5. Date: 28 Feb 1996 13:25:12 -0800
  6. Organization: Cal Poly, San Luis Obispo
  7. Message-ID: <4h2h7o$eq6@garden.csc.calpoly.edu>
  8. References: <4h0inh$jlb@news-f.iadfw.net> <IViA7DA4HENxEw1s@nmsg.demon.co.uk>
  9. NNTP-Posting-User: dstubbs@garden.csc.calpoly.edu
  10.  
  11. In article <IViA7DA4HENxEw1s@nmsg.demon.co.uk>,
  12. Mark Harden  <mark@nmsg.demon.co.uk> wrote:
  13. >In article <4h0inh$jlb@news-f.iadfw.net>, Chris Riley
  14. ><riley@mail.airmail.net> writes
  15. >>I'm looking for a C source code formatter that will take existing C source 
  16. >>code and format it in a "more readable" format.  Source code for this program 
  17. >>would be nice so that I could modify it to suit.  Does anyone out there know 
  18. >>of one that's available via ftp?
  19. >
  20. >There is a GNU prog called INDENT or is it IDENT ?
  21. >This can be configured to cover a range of styles...
  22. >
  23. I agree that indent is a very good program. You can configure it
  24. in the command line when it is invoked, or you can put your choices
  25. in a configuration file so that indent becomes "customized" to how
  26. you want it to operate. I suspect it is available on most UNIX systems.
  27.  
  28. Another public domain formatter is cb for "beautifier." It does
  29. not provide for as much user control as indent, but there are a few
  30. flags that can be set on the command line. One of its options formats
  31. code to the style used in K&R.
  32.  
  33. I suspect you really want a good *customizable* formatter, not the
  34. source code. 
  35.  
  36.  
  37.  
  38.